package com.twu.biblioteca;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: ialbuqu
 * Date: 7/4/13
 * Time: 6:34 PM
 * To change this template use File | Settings | File Templates.
 */
public class DataBase {
    private ArrayList<BooksList> books = new ArrayList<BooksList>();
    private ArrayList<MoviesList> movies = new ArrayList<MoviesList>();
    private ArrayList<UsersList> users = new ArrayList<UsersList>();

    public ArrayList<BooksList> getBooks(){
        return books;
    }

    public ArrayList<MoviesList> getMovies(){
        return movies;
    }

    public ArrayList<UsersList> getUsers(){
        return users;
    }

    public void startDataBase(){
        addBooks();
        addMovies();
        addUsers();
    }

    public void addBooks(){

        BooksList book1 = new BooksList(1, "Harry Potter and the Philosopher's Stone", "J. K. Rowling", true);
        BooksList book2 = new BooksList(2, "Percy Jackson & the Olympians", "Rick Riordan", false);
        BooksList book3 = new BooksList(3, "Marley & Me", "John Grogan", false);
        BooksList book4 = new BooksList(4, "A Game of Thrones", "George R. R. Martin", false);
        BooksList book5 = new BooksList(5, "The Lord of the Rings", "J. R. R. Tolkien", true);

        books.add(book1);
        books.add(book2);
        books.add(book3);
        books.add(book4);
        books.add(book5);


    }

    public void addMovies() {

        MoviesList movie1 = new MoviesList(1, "A Good Day to Die Hard ", 2013, "John Moore", 8.5);
        MoviesList movie2 = new MoviesList(2, "Man of Steel", 2013, "Zack Snyder", null);
        MoviesList movie3 = new MoviesList(3, "The American President", 1995, "Rob Reiner", 7.0);
        MoviesList movie4 = new MoviesList(4, "Ghostbusters", 1984, "Ivan Reitman", 8.0);
        MoviesList movie5 = new MoviesList(5, "Star Wars", 1977, "George Lucas", 7.2);
        MoviesList movie6 = new MoviesList(6, "I Am Legend", 2007, "Francis Lawrence", 6.5);
        MoviesList movie7 = new MoviesList(7, "Batman Begins", 2005, "Christopher Nolan", null);
        MoviesList movie8 = new MoviesList(8, "Spiderman", 2002, "Sam Raimi", 7.0);
        MoviesList movie9 = new MoviesList(9, "Twister", 1996, "Jan de Bont", null);
        MoviesList movie10 = new MoviesList(10, "Forrest Gump", 1984, "Robert Zemeckis", 8.1);
        MoviesList movie11 = new MoviesList(11, "Jaws", 1975, "Steven Spielberg", null);
        MoviesList movie12 = new MoviesList(12, "Fast & Furious 6", 2013, "Justin Lin", 8.5);
        MoviesList movie13 = new MoviesList(13, "Oblivion", 2013, "Joseph Kosinski", null);
        MoviesList movie14 = new MoviesList(14, "Inception", 2010, "Christopher Nolan", 8.4);
        MoviesList movie15 = new MoviesList(15, "Toy Story 3", 2010, "Lee Unkrich", 9.0);

        movies.add(movie1);
        movies.add(movie2);
        movies.add(movie3);
        movies.add(movie4);
        movies.add(movie5);
        movies.add(movie6);
        movies.add(movie7);
        movies.add(movie8);
        movies.add(movie9);
        movies.add(movie10);
        movies.add(movie11);
        movies.add(movie12);
        movies.add(movie13);
        movies.add(movie14);
        movies.add(movie15);
    }

    public void addUsers(){
        UsersList user1 = new UsersList(1, "Isabella Albuquerque", "111-1111", "111", "isabellaral@gmail.com", "8186030582");
        UsersList user2 = new UsersList(2, "João Victor", "111-1112", "222", "joao.victor@gmail.com", "8187943701");
        UsersList user3 = new UsersList(3, "Cristiane Rocha", "111-1113", "333", "cristiane.rocha@gmail.com", "8198340441");

        users.add(user1);
        users.add(user2);
        users.add(user3);
    }

}
